package server

import (
	"github.com/dgrijalva/jwt-go"
	"github.com/gofiber/fiber/v2"
)

type RegisterResponseType struct {
	Name string `json:"name"`
	Pwd  string `json:"pwd"`
}

type NewFileType struct {
	Title string `json:"title"`
}

type Claims struct {
	Data string `json:"username"`
	jwt.StandardClaims
}

type TokenInterface struct {
	plugin []func(ctx *fiber.Ctx, token, origin string) error
	path   []string
}

var (
	apiV1          *fiber.Router = nil
	authentication *TokenInterface
	apiV2          *fiber.Router = nil
)
